package class17_Graph.graph;

import java.util.ArrayList;

public class Node {
    public int value;
    public int in;
    public int out;
    public ArrayList<Node> nexts;
    public ArrayList<Edge> inEdges;
    public ArrayList<Edge> outEdges;

    public Node(int value) {
        this.value = value;
        in = 0;
        out = 0;
        nexts = new ArrayList<>();
        inEdges = new ArrayList<>();
        outEdges = new ArrayList<>();
    }

    @Override
    public String toString() {
        return "("+ value +")";
    }
}
